package PTA3.ti42;

import java.util.Scanner;

/**
 * @author Lenovo
 */
class point{
    private int x;
    private int y;
    private boolean status;
    public point(int x, int y, boolean status){
        this.x=x;
        this.y=y;
        this.status=false;
    }
    public String getStatus(){
        return status ?"on":"off";
    }
}
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();
        int y = scanner.nextInt();
        boolean status = scanner.nextBoolean();
        point p = new point(x,y,status);
        System.out.println(p.getStatus());
        scanner.close();
    }
}
